package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("fan_operation_log")
public class FanOperationLog {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("fan_id")
    private Long fanId;

    @TableField("greenhouse_id")
    private Long greenhouseId;

    @TableField("level")
    private String level;

    @TableField("operator_id")
    private Long operatorId;

    @TableField("operate_time")
    private LocalDateTime operateTime = LocalDateTime.now();
}